import {createRouter,createWebHistory,RouteRecordRaw} from 'vue-router'


const routes:Array<RouteRecordRaw> = [
    {
        path:"/",
        name:"HelloWorld",
        component:()=>import('../components/HelloWorld.vue')
    },
    {
        path:"/AddInvert",
        name:"AddInvert",
        component:()=>import('../View/Invert/AddInvert.vue')
    },
    {
        path:"/ShowInvert",
        name:"ShowInvert",
        component:()=>import('../View/Invert/ShowInvert.vue')
    }
]
//创建路由
const router = createRouter({
    history:createWebHistory(),
    routes
})
//导出路由
export default router

